package com.zjj.jvm2.memAllocation;

/**
 * @author zhanglei.zjj
 * @description 通过代码验证GC过程
 * -XX:+PrintGC 输出简要GC日志
 * -XX:+PrintGCDetails 输出详细GC日志
 * @date 2023/3/13 23:52
 */
public class GCTest {
    public static void main(String[] args) throws InterruptedException {
        byte[] allocation1, allocation2, allocation3, allocation4, allocation5, allocation6;
        allocation1 = new byte[60000*1024];

        allocation2 = new byte[8000*1024];
//
//        allocation3 = new byte[1000*1024];
//        allocation4 = new byte[1000*1024];
//        allocation5 = new byte[1000*1024];
//        allocation6 = new byte[1000*1024];
    }
}
